<%--
  Created by IntelliJ IDEA.
  User: Stiofan
  Date: 2017/3/13
  Time: 17:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/common/tags.jsp" %>

<aos:html title="国土采集信息比对分析" base="http" lib="ext">
    <aos:body>
    </aos:body>
</aos:html>
<aos:onready>
    <aos:viewport layout="fit">
        <aos:panel layout="column" columnWidth="1" autoScroll="true">
            <aos:formpanel id="cxbdfxForm" layout="column" columnWidth="1" border="false"
			autoScroll="true">
            <aos:docked dock="top" columnWidth="1" layout="column" border="true"
				height="135">
            <aos:dockeditem text="比对异常查询" margin="0 3" columnWidth="0.1"
					icon="icon71.png" onclick="queryGtcjxxbdfxYcByParams" />
			<aos:dockeditem text="比对正常查询" margin="0 3" columnWidth="0.1"
					icon="icon71.png" onclick="queryGtcjxxbdfxZcByParams" />
			<aos:panel columnWidth="1" layout="column">	
                <aos:textfield id="nsrsbh" name="nsrsbh" fieldLabel="纳税人识别号" columnWidth="0.25"/>
                <aos:textfield id="nsrmc" name="nsrmc" fieldLabel="纳税人名称" columnWidth="0.25"/>
                <aos:combobox id="zgswjgDm" name="zgswjgDm" fieldLabel="主管税务机关" columnWidth="0.25"
                              url="fgcjxxbdfxService.queryZgswjgDmByHttpModel" onselect="queryZgswskfjDmByZgswjgDm"/>
                <aos:combobox id="zgswskfjDm" name="zgswskfjDm" fieldLabel="主管税务科所" columnWidth="0.25"
                              url="fgcjxxbdfxService.queryZgswskfjDmByZgswjgDm" onselect="querySsglyDmByZgswskfjDm"/>
                <aos:combobox id="ssglyDm" name="ssglyDm" fieldLabel="税收管理员" columnWidth="0.25"
                              url="fgcjxxbdfxService.querySsglyDmByZgswskfjDm"/>
                <aos:textfield id="tdzdh" name="tdzdh" fieldLabel="土地宗地号" columnWidth="0.25"/>
                <aos:textfield id="tdbh" name="tdbh" fieldLabel="土地编号" columnWidth="0.25"/>
                <aos:datefield id="sqyqsrq" name="sqyqsrq" fieldLabel="使用权起始日期" columnWidth="0.25"/>
                <aos:datefield id="syqzzrq" name="syqzzrq" fieldLabel="使用权终止日期" columnWidth="0.25"/>
                <aos:textfield columnWidth="1" value="因为比对分析过程较慢，请耐心等待!操作界面中不提供数据展示." readOnly="true"/>
            </aos:panel>
            </aos:docked>
            <aos:gridpanel id="gtcjxxbdfxGrid" layout="fit" forceFit="true"
				columnWidth="1.5" autoScroll="true" hidePagebar="true" 
				url="gtcjxxbdfxService.queryGtcjxxbdfxZcByParams" height="300"
				columnLines="true">
				<aos:column dataIndex="nsrsbh" header="纳税人识别号" width="0.1"
					align="center" />
				<aos:column dataIndex="nsrmc" header="土地使用权人(纳税人名称）" width="0.1"
					align="center" />
				<aos:column dataIndex="tdzdh" header="土地宗地号" width="0.1"
					align="center" />
					<aos:column dataIndex="tdzmj" header="面积（实际）" width="0.1"
					align="center" />
				<aos:column dataIndex="tdzyz" header="土地原值（实际）" width="0.1"
					align="center" />
				<aos:column dataIndex="nynse" header="年应纳税额（实际）" width="0.1"
					align="center" />
				<aos:column dataIndex="gtTdmj" header="面积（国土）" width="0.1"
					align="center" />
				<aos:column dataIndex="gtTdyz" header="土地原值（国土）" width="0.1"
					align="center" />
				<aos:column dataIndex="fxjg" header="是否异常" width="0.1"
					align="center" />
			</aos:gridpanel>
            </aos:formpanel>
            <aos:docked dock="bottom" ui="footer" columnWidth="1" layout="column" border="false">
                <aos:panel layout="column" columnWidth="1" border="false">
                    <aos:panel layout="column" columnWidth="0.25" center="true" animate="false" border="false">
                        <aos:button text="比对" columnWidth="0.5" margin="2" onclick="exportGtcjxxbdfxjg"/>
                        <aos:button text="重置" columnWidth="0.5" margin="2" onclick=""/>
                    </aos:panel>
                </aos:panel>
            </aos:docked>
        </aos:panel>
    </aos:viewport>
    <script type="text/javascript">
        function queryZgswskfjDmByZgswjgDm() {
            var params = {
                zgswjgDm: Ext.getCmp("zgswjgDm").getValue()
            };
            zgswskfjDm_store.getProxy().extraParams = params;
            zgswskfjDm_store.reload();
        }
        function querySsglyDmByZgswskfjDm() {
            var params = {
                zgswskfjDm: Ext.getCmp("zgswskfjDm").getValue()
            };
            ssglyDm_store.getProxy().extraParams = params;
            ssglyDm_store.reload();
        }
        function queryGtcjxxbdfxZcByParams() {
        	gtcjxxbdfxGrid_store.getProxy().url='do.jhtml?router=gtcjxxbdfxService.queryGtcjxxbdfxZcByParams&juid=${juid}';
        	gtcjxxbdfxGrid_store.getProxy().extraParams = Ext.getCmp
            ("cxbdfxForm").getValues();
        	gtcjxxbdfxGrid_store.reload();
            }
            
        function queryGtcjxxbdfxYcByParams() {
            gtcjxxbdfxGrid_store.getProxy().url='do.jhtml?router=gtcjxxbdfxService.queryGtcjxxbdfxYcByParams&juid=${juid}';
            gtcjxxbdfxGrid_store.getProxy().extraParams = Ext.getCmp
            ("cxbdfxForm").getValues();
            gtcjxxbdfxGrid_store.reload();
            }
        function exportGtcjxxbdfxjg() {
            AOS.ajax({
                forms: cxbdfxForm,
                url: "gtcjxxbdfxService.exportGtcjxxbdfxjg",
                ok: function (data) {
                    if (data.appcode === "suc") {
                    	// window.location.href = "/gszw-ydksxt/" + data.downloadUrl;
						window.location.href = "/" + data.downloadUrl;
                    } else {
                        AOS.err(data.appmsg);
                    }
                }
            });
        }
    </script>
</aos:onready>
